import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: ''
  },
  getters: {
    getUserinfo (state) {
      return state.userInfo
    }
  },
  mutations: {
    setUserinfo (state, userinfo) {
      state.userInfo = userinfo
    }
  },
  actions: {},
  modules: {}
})
